import request from '@/utils/request'

// 查询黑白名单配置列表
export function listBlackwhitelist(query) {
  return request({
    url: '/lbconfig/blackwhitelist/list',
    method: 'get',
    params: query
  })
}

// 查询黑白名单配置详细
export function getBlackwhitelist(id) {
  return request({
    url: '/lbconfig/blackwhitelist/' + id,
    method: 'get'
  })
}

// 新增黑白名单配置
export function addBlackwhitelist(data) {
  return request({
    url: '/lbconfig/blackwhitelist',
    method: 'post',
    data: data
  })
}

// 修改黑白名单配置
export function updateBlackwhitelist(data) {
  return request({
    url: '/lbconfig/blackwhitelist',
    method: 'put',
    data: data
  })
}

// 删除黑白名单配置
export function delBlackwhitelist(id) {
  return request({
    url: '/lbconfig/blackwhitelist/' + id,
    method: 'delete'
  })
}
